package com.sky.dto;

import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;


import java.io.Serializable;

@Data
public class EmployeePageQueryDTO implements Serializable {

    //员工姓名
    @Schema(description = "员工姓名",name = "name",example = "张三")
    @Parameter(name = "name", description = "员工姓名", example = "张三")
    private String name;

    //页码,必须填写的注解
    @Schema(description = "页码",name = "page",example = "1")
    @Parameter(name = "page", description = "页码", example = "1")
    @NotNull(message = "页码不能为空")
    private Integer page;

    //每页显示记录数
    @Schema(description = "每页显示记录数",name = "pageSize",example = "10")
    @Parameter(name = "pageSize", description = "每页显示记录数", example = "10")
    @NotNull(message = "每页显示记录数不能为空")
    private Integer pageSize;

}
